var time=null; 
var speed = 3000;//图片切换速度 
var index=0;//图片开始时间
/*var len;
var curIndex;*/
$(function(){
	/*len=$(".pic ul li");document.getElementById("pic").getElementsByTagName("li");
	curIndex = 1;
	change(); */
	//BookingRoute.jsp   ConductorInfo.jsp
	$('.add').click(function(){
		$('#AddConducor').show();
	})
	$('.bt1').click(function(){
		$('#AddConducor').hide();
	});
	$('.bt1_1').click(function(){
		$('#AddConducor').hide();
	});
	$('.border-main').click(function(){
		$('#AddConducor1').show();
	});
	$('.bt2').click(function(){
		$('#AddConducor1').hide();
	});
	$('.bt1_1').click(function(){
		$('#AddConducor1').hide();
	});
	$('.border-red').click(function(){
		$("#delete").show();
	});
	$(".OK").click(function(){
		$("#delete").hide();
	});
	$('.No').click(function(){
		$("#delete").hide();
	});
	//After.jsp
	$(".leftnav h2").click(function(){
		  $(this).next().slideToggle(200);	
		  $(this).toggleClass("on"); 
	});
	$(".leftnav ul li a").click(function(){
		  $("#a_leader_txt").text($(this).text());
	  	  $(".leftnav ul li a").removeClass("on");
		  $(this).addClass("on");
	});
	//head.jsp
	$(".ul").click(function(){
		$("#userLogin").show();
	});
	$(".NO").click(function(){
		$("#userLogin").hide();
	});
	$(".login").click(function(){
		$("#userLogin").hide();
	});
	
	
	
	
	
	/*var opts=$(".pic li");
	alert(opts.index);
	start(); 
	var start = function() {
		 alert("start");
         opts.timer = setInterval(function() {  
             ++opts.index;  
             core();  
         }, opts.speed);  
     }  */

/*$(".slide-icon ul li").onmouseove(function() {
	alert("123456789");
	$(".slide-icon ul li").eq(opts.index).addClass("current").siblings("li").removeClass("current");
         clearInterval();  
     }, function() {  
         change();  
     });  */

 
	
	
});
/*function change(){
	if(curIndex>3){
		curIndex=1;
	}
	if(curIndex==1){
		document.getElementById("img1").style.display="block";
		document.getElementById("img2").style.display="none";
		document.getElementById("img3").style.display="none";
	}
	if(curIndex==2){
		document.getElementById("img1").style.display="none";
		document.getElementById("img2").style.display="block";
		document.getElementById("img3").style.display="none";
	}
	if(curIndex==3){
		document.getElementById("img1").style.display="none";
		document.getElementById("img2").style.display="none";
		document.getElementById("img3").style.display="block";
	}
	curIndex+=1;
	setInterval(change(),2500);
}*/
/*window.onload=function(){*/
	/*change();*/
	/* var str=location.href; //取得整个地址栏
	 var num=str.indexOf("?") 
	 str=str.substr(num+1); //取得所有参数   stringvar.substr(start [, length ]
	 num=str.indexOf("=");
	 str=str.substr(num+1);
	 Userxz(str);
	var len=document.getElementById("pic").getElementsByTagName("li");
	var curIndex = 1;
	function change(){
		if(curIndex>3){
			curIndex=1;
		}
		if(curIndex==1){
			document.getElementById("img1").style.display="block";
			document.getElementById("img2").style.display="none";
			document.getElementById("img3").style.display="none";
		}
		if(curIndex==2){
			document.getElementById("img1").style.display="none";
			document.getElementById("img2").style.display="block";
			document.getElementById("img3").style.display="none";
		}
		if(curIndex==3){
			document.getElementById("img1").style.display="none";
			document.getElementById("img2").style.display="none";
			document.getElementById("img3").style.display="block";
		}
		curIndex+=1;
	}
	
	setInterval(change,3000);*/
/*}*/


function password(){
	document.getElementById("password").style.display="block";
	document.getElementById("Order").style.display="none";
	document.getElementById("info").style.display="none";
}
function ziliao(){
	document.getElementById("info").style.display="block";
	document.getElementById("password").style.display="none";
	document.getElementById("Order").style.display="none";
}
function Order(){
	document.getElementById("password").style.display="none";
	document.getElementById("info").style.display="none";
	document.getElementById("Order").style.display="block";
}



function Userxz(a){
	switch(a){
	case "1":
		document.getElementById("userxizhi1").style.display="block";
		break;
	case "2":
		document.getElementById("userxizhi2").style.display="block";
		break;
	case "3":
		document.getElementById("userxizhi3").style.display="block";
		break;
	case "4":
		document.getElementById("userxizhi4").style.display="block";
		break;
	case "5":
		document.getElementById("userxizhi5").style.display="block";
		break;
	case "6":
		document.getElementById("userxizhi6").style.display="block";
		break;
	case "7":
		document.getElementById("userxizhi7").style.display="block";
		break;
	}
	
}






function BookingInfo(){
	document.getElementById("iframe").src="BookingInfo.jsp";
}
function UserInfo(){
	document.getElementById("iframe").src="UserInfo.jsp";
}
function BookingRoute(){
	document.getElementById("iframe").src="BookingRoute.jsp";
}
function ConductorInfo(){
	document.getElementById("iframe").src="ConductorInfo.jsp";
}









